﻿@using SunTzu.Utility;
@model form_bussiness
@{
    ViewBag.Title = "商务洽谈对接区专属席位申请审核";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
    List<int> areas = new List<int>();
    
    List<int> scopes = new List<int>();
    if (!string.IsNullOrEmpty(Model.Scope))
    {
        scopes.AddRange(Model.Scope.Split(',').Select(c => c.ParseToInt()));
    }
    
    List<int> purposeNeeds = new List<int>();
    if (!string.IsNullOrEmpty(Model.PurposeNeed))
    {
        purposeNeeds.AddRange(Model.PurposeNeed.Split(',').Select(c => c.ParseToInt()));
    }
    List<int> purposeOffers = new List<int>();
    if (!string.IsNullOrEmpty(Model.PurposeOffer))
    {
        purposeOffers.AddRange(Model.PurposeOffer.Split(',').Select(c => c.ParseToInt()));
    }
}

	<form id="editForm" name="editForm" method="post" action="/Formbussiness/Approve/?id=@Model.Id">
	<div id="panelBar">
		<ul class="toolBar">
			<li><input class="submit" type="submit" value="确认审核" /></li>
			<li><a class="back" href="javascript:void(0)"><span>返回</span></a></li>
		</ul>
	</div>
	<div id="edit">
		<ul>
            <li> 
				<span class="label">单位名称：</span>
                <span class="required">
                    <input id="Title" name="Title" type="text" value="@Model.Title" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">单位地址：</span>
                <span class="required">
                    <input id="Address" name="Address" type="text" value="@Model.Address" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">联系人：</span>
                <span class="required">
                    <input id="Contacter" name="Contacter" type="text" value="@Model.Contacter" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">电话：</span>
                <span class="required">
                    <input id="Tel" name="Tel" type="text" value="@Model.Tel" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">手机：</span>
                <span class="required">
                    <input id="ContacterMobile" name="ContacterMobile" type="text" value="@Model.ContacterMobile" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">传真：</span>
                <span >
                    <input id="Fax" name="Fax" type="text" value="@Model.Fax"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">电子邮箱：</span>
                <span class="required">
                    <input id="Email" name="Email" type="text" value="@Model.Email" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">网址：</span>
                <span >
                    <input id="Url" name="Url" type="text" value="@Model.Url"  title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">业务范围：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var scope in CacheHelper<code_scope>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(scope.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(scopes.Contains(scope.Id) ? "checked" : "") name="Scope" value="@scope.Id" /> @scope.Title
                            @if (scope.Title == "其他")
                            {
                            <input type="text" name="ScopeOtherName" class="inputNormal" value="@Model.ScopeOtherName" />
                            }
                        </li>
                    }
                    </ul>
                </span>
			</li> 


            <li> 
				<span class="label">对接内容（寻求）：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var purpose in CacheHelper<code_purpose>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(purpose.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(purposeNeeds.Contains(purpose.Id) ? "checked" : "") name="PurposeNeed" value="@purpose.Id" /> @purpose.Title
                        </li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">对接内容（提供）：</span>
                <span >
                    <ul class="multiSelections">
                    @foreach (var purpose in CacheHelper<code_purpose>.GetAll().OrderBy(c => c.Order))
                    {
                        <li @(purpose.Title == "其他" ? "class=multiSelectionInput" : "")>
                            <input type="checkbox" @(purposeOffers.Contains(purpose.Id) ? "checked" : "") name="PurposeOffer" value="@purpose.Id" /> @purpose.Title
                        </li>
                    }
                    </ul>
                </span>
			</li> 
            <li> 
				<span class="label">信息标题：</span>
                <span class="required">
                    <input id="RequirementTitle" name="RequirementTitle" type="text" value="@Model.RequirementTitle" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">具体需求信息：</span>
                <span class="required">
                    <input id="Requirement" name="Requirement" type="text" value="@Model.Requirement" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">最少交易/投资金额：</span>
                <span class="required">
                    <input id="Amount" name="Amount" type="text" value="@Model.Amount" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">提供宣传单/宣传手册/产品样本？：</span>
                <span >
                    <input type="radio" name="IsSampleProvided" @(Model.IsSampleProvided ? "checked" : "") value="True" /> 是
                    <input type="radio" name="IsSampleProvided" @(!Model.IsSampleProvided ? "checked" : "") value="False"/> 否
                </span>
			</li> 
            <li> 
				<span class="label">具体需求信息：</span>
                <span class="required">
                    <input id="ServiceRequirement" name="ServiceRequirement" type="text" value="@Model.ServiceRequirement" title="请输入" /> 
                </span>
			</li> 
		</ul>
	</div>
	</form>
